/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-1-15 下午6:47 Created by dwzhang
 */
package com.jade.modules.cms;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * 内容评论。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-1-15 下午6:47
 */
//@Entity
//@Table (name = "MODULE_CMS_COMMENT")
public class Comment extends CmsUserEntity
{
    public static final int STATUS_NEW = 0;
    public static final int STATUS_AUDITED = 1;
    public static final int STATUS_FILTERED = 5;

    @Id
    @GeneratedValue (generator = "MODULE_SEQ_CMS_COMMENT")
    @SequenceGenerator (name = "MODULE_SEQ_CMS_COMMENT", sequenceName = "MODULE_SEQ_CMS_COMMENT")
    private long id;
    //评论内容
    @Column (name = "remark", length = 1024, updatable = false, nullable = false)
    private String remark;
    //状态
    private int status = STATUS_AUDITED;

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }
}
